.CodeMirror-dialog {
  position: absolute;
  left: 0; right: 0;
  z-index: 15;
  padding: .1em .8em;
  overflow: hidden;
  background-color: #fff;
  color: #000;
}

.dark-mode .CodeMirror-dialog {
  background: #25282c;
  color: #d8dee9;
}

.CodeMirror-dialog-top {
  border-bottom: 1px solid #eee;
  top: 0;
}

.CodeMirror-dialog-bottom {
  border-top: 1px solid #eee;
  bottom: 0;
}

.CodeMirror-dialog input {
  border: none;
  outline: none;
  background-color: inherit;
  width: 20em;
  color: inherit;
  font-family: monospace;
}

.CodeMirror-dialog button {
  font-size: 70%;
  color: var(--lm-button-text-color);
  background-color: var(--lm-button-bg-color);
}

.dark-mode .CodeMirror-dialog button {
  font-size: 70%;
  color: var(--dm-button-text-color);
  background-color: var(--dm-button-bg-color);
}
